import request from'@/utils/request'
//轮播查询
export function getRotation(params){
    return request({
        url:'/banner/list',
        method:'get',
        params
    })  
}
//轮播添加
export function addRotation(data){
    return request({
        url:'/banner',
        method:'post',
        data
    })  
}
//轮播修改
export function updateRotation(data){
    return request({
        url:'/banner',
        method:'put',
        data
    })  
}
//轮播删除
export function delRotation(data){
    return request({
        url:'/banner/'+data,
        method:'DELETE',
    })  
}
//搜索活动
export function getActivity(params){
    return request({
        url:'/activity/list',
        method:'get',
        params
    })  
}
//新增活动
export function addActivity(data){
    return request({
        url:'/activity',
        method:'post',
        data
    })  
}
//修改活动
export function uptActivity(data){
    return request({
        url:'/activity',
        method:'put',
        data
    })  
}
//删除活动
export function delActivity(data){
    return request({
        url:'/activity/' +data,
        method:'DELETE',
    })  
}
//搜索知识分享
export function getKnowledge(params){
    return request({
        url:'/knowledgesharing/list',
        method:'get',
        params
    })  
}
//新增知识分享
export function addKnowledge(data){
    return request({
        url:'/knowledgesharing',
        method:'post',
        data
    })  
}
//修改知识分享
export function uptKnowledge(data){
    return request({
        url:'/knowledgesharing',
        method:'put',
        data
    })  
}
//删除知识分享
export function delKnowledge(data){
    return request({
        url:'/knowledgesharing/' +data,
        method:'DELETE',
    })  
}
//查询学生信息
export function getStudent(params){
    return request({
        url:'/web/student/cur',
        method:'get',
        params
    })  
}
//新增学生信息
export function addStudent(data){
    return request({
        url:'/web/student',
        method:'post',
        data
    })  
}
//修改学生信息
export function uptStudent(data){
    return request({
        url:'/web/student',
        method:'put',
        data
    })  
}
//删除学生信息

export function delStudent(id){
    return request({
        url:'/web/student/' + id,
        method:'delete',
        
    })  
}